package com.chenfan.mcn.model.rpc;

import com.alibaba.fastjson.annotation.JSONType;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 财务开票回调请求
 *
 * @author wulg
 * @date 2022-07-28
 **/
@Deprecated
@EqualsAndHashCode(callSuper = true)
@Data
@JSONType(typeName = BusinessScene.INVOICED)
public class InvoicedCallback extends AbstractFinanceCallback {

    private static final long serialVersionUID = -6616208887459738874L;

    /**
     * 开票流水号
     */
    @NotBlank(message = "开票流水号不能为空")
    private String taxInvoiceNo;


    /**
     * 开票金额
     */
    @NotNull(message = "开票金额不能为空")
    private BigDecimal invoicedAmount;

    /**
     * 收入合同号
     */
    @NotBlank(message = "收入合同号不能为空")
    private String contractCode;
}
